package cn.theten52.demo.patterns.design.creation.prototype.serializable;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;

/**
 * TODO
 *
 * @author wangjin
 * @date 2020/12/30
 */
public class S implements Serializable {
    int x;
    int y;
    List<Integer> list = new ArrayList<>();

    public int getX() {
        return x;
    }

    public int getY() {
        return y;
    }

    public List<Integer> getList() {
        return list;
    }

    public void setXY(int x, int y) {
        this.x = x;
        this.y = y;
    }

    public void setList(Integer... list) {
        this.list = Arrays.asList(list);
    }
}
